package com.yx.coredata.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RabbitConfig {
    /**
     * 声明队列q1
     * @return
     */
    @Bean
    public Queue myQueue(){
        return new Queue("q1",true);
    }
}

